package com.pan.old.pa.anju.entity;

import com.pan.old.pa.entity.Info;

public class FangInfo implements Info {

    String title;
    String fangUrl;
    String itemTag;
    String huXing;// 户型
    String mianJi; // 面积
    String cengGao;// 层高
    String zhongJie; // 中介人名
    String address;
    String botTag;
    String price;

    @Override
    public String getTitleLineStr(){
        return "标题,链接,信息原文,户型,面积,层高,中介人,地址,其他标签,价格\n";
    }

    @Override
    public String getCsvLineStr(){
        return title +","+ fangUrl +","+ itemTag +","+ huXing +","+ mianJi +","+ cengGao +","+
                zhongJie +","+ address +","+ botTag +","+ price+"\n";
    }

    public FangInfo() {
    }

    public FangInfo(String title, String fangUrl, String itemTag, String huXing, String mianJi, String cengGao, String zhongJie, String address, String botTag, String price) {
        this.title = title;
        this.fangUrl = fangUrl;
        this.itemTag = itemTag;
        this.huXing = huXing;
        this.mianJi = mianJi;
        this.cengGao = cengGao;
        this.zhongJie = zhongJie;
        this.address = address;
        this.botTag = botTag;
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getFangUrl() {
        return fangUrl;
    }

    public void setFangUrl(String fangUrl) {
        this.fangUrl = fangUrl;
    }

    public String getItemTag() {
        return itemTag;
    }

    public void setItemTag(String itemTag) {
        this.itemTag = itemTag;
    }

    public String getHuXing() {
        return huXing;
    }

    public void setHuXing(String huXing) {
        this.huXing = huXing;
    }

    public String getMianJi() {
        return mianJi;
    }

    public void setMianJi(String mianJi) {
        this.mianJi = mianJi;
    }

    public String getCengGao() {
        return cengGao;
    }

    public void setCengGao(String cengGao) {
        this.cengGao = cengGao;
    }

    public String getZhongJie() {
        return zhongJie;
    }

    public void setZhongJie(String zhongJie) {
        this.zhongJie = zhongJie;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBotTag() {
        return botTag;
    }

    public void setBotTag(String botTag) {
        this.botTag = botTag;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "FangInfo{" +
                "title='" + title + '\'' +
                ", fangUrl='" + fangUrl + '\'' +
                ", itemTag='" + itemTag + '\'' +
                ", huXing='" + huXing + '\'' +
                ", mianJi='" + mianJi + '\'' +
                ", cengGao='" + cengGao + '\'' +
                ", zhongJie='" + zhongJie + '\'' +
                ", address='" + address + '\'' +
                ", botTag='" + botTag + '\'' +
                ", price='" + price + '\'' +
                '}';
    }
}
